* lisp/progmodes/python.el (python-shell-get-buffer): New function.
authorStefan Monnier <monnier@iro.umontreal.ca>
Wed, 30 Oct 2013 01:28:36 +0000 (21:28 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Wed, 30 Oct 2013 01:28:36 +0000 (21:28 -0400)
commit726f86de00609f94e3bf3a4731b2b4a9c8a1183a
treedba811a4d0b3cb32d3ab7a4934ea0d512a760d61
parentd591191a9b5f62c19e9e2ba8b977be2e13f76c15
* lisp/progmodes/python.el (python-shell-get-buffer): New function.
(python-shell-get-process): Use it.
(python-shell-send-string): Always use utf-8 and add a cookie to tell
Python which encoding was used.  Don't split-string since we only care
about the first line.  Return the temp-file, if applicable.
(python-shell-send-region): Tell compile.el how to turn locations in
the temp-file into locations in the source buffer.
lisp/ChangeLog
lisp/progmodes/python.el